package com.un.ebs.context.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.un.ebs.context.domain.SysObject;
import com.un.ebs.core.metadata.FunctionInfo;
import com.un.ebs.core.metadata.ServiceInfo;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/6/4 10:18
 */
public interface SystemDbService extends IService<SysObject> {

    List<SysObject> queryObject(String objName);

    FunctionInfo buildFunction(String objName);

    List<FunctionInfo> queryFunctions(String objName);

    List<ServiceInfo> queryServices();

    IPage<LinkedHashMap<String, Object>> execQuery(String objName, String sortName, Map<String, Object> args, int pageIndex, int pageSize);

    IPage<LinkedHashMap<String, Object>> execQuery(String objName, String sortName, String args, int pageIndex, int pageSize);
}
